<?php
include('lock.php');
$id = addslashes($_GET['id']);
$photo = mysql_query("SELECT user_picture FROM user Where user_email='$id'");
$photo = mysql_fetch_assoc($photo);
$photo = $photo['user_picture'];
header("Content-type: image/jpeg");
echo $photo;
?>